﻿#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QMenuBar>
#include <QLabel>
MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow),box1(0)
{
    ui->setupUi(this);

//    box1= new QSpinBox;
//    box1->setParent(this);

    //工具栏上放置工具
    QSpinBox *box2=new QSpinBox;
    box2->setMinimum(4);
    box2->setMaximum(10);
    ui->toolBar->addWidget(box2);
    ui->toolBar->addSeparator();

}

MainWindow::~MainWindow()
{
    delete ui;
}


void MainWindow::on_closeButton_clicked()
{
    QMainWindow::close();
}
